package com.nbjtjc.safe.mapper.emg.handle;

import com.nbjtjc.safe.model.emg.handle.EmgHandle;
import com.nbjtjc.util.MyMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface EmgHandleMapper extends MyMapper<EmgHandle> {

    List<EmgHandle> search(@Param("handle") EmgHandle emgHandle);

    @ResultMap("handleListAndGoods")
    @Select("select * from emg_handle where type_id=#{typeId}")
    List<EmgHandle> findByTypeId(@Param("typeId") int typeId);
}